﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class GetPalletDataMessage : BaseTibcoMessage<GetPalletDataMessageBody>
    {
        public GetPalletDataMessage()
        {

        }
        public GetPalletDataMessage(GetPalletDataMessageBody body, string inboxName = "", string listener = "") : base("ValidatePalletListRequest", body, inboxName, listener)
        {
        }
    }


    public class GetPalletDataMessageBody : PalletEventBase
    {
        public GetPalletDataMessageBody()
        {
        }
        [XmlElement("CURRENTMACHINENAME")]
        public string CurrentMachineName { get; set; }
        [XmlElement("CURRENTPOSITIONTYPE")]
        public string CurrentPositionType { get; set; }
        [XmlElement("CURRENTPOSITIONNAME")]
        public string CurrentPositionName { get; set; }
        [XmlElement("CURRENTZONENAME")]
        public string CurrentZoneName { get; set; }
        [XmlElement("PALLETLOCSTATE")]
        public string PalletLocState { get; set; }
        [XmlElement("TRANSFERSTATE")]
        public string TransferState { get; set; }

    }
}
